package com.uzai.console.mapper;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.wechatprivate.wxq.manageplan.WxqManagePlanQuery;
import com.uzai.console.entity.WxqManagePlan;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface WxqManagePlanMapper {
    int deleteById(@Param("id") Long id, @Param("merId") Long merId);

    int insert(WxqManagePlan record);

    int insertSelective(WxqManagePlan record);

    WxqManagePlan selectById(@Param("id") Long id, @Param("merId") Long merId);

    WxqManagePlan selectByNameAndMerId(@Param("name") String name, @Param("merId") Long merId);

    int updateByIdSelective(WxqManagePlan record);

    int updateById(WxqManagePlan record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<WxqManagePlan> findByList(Page<WxqManagePlan> page, @Param("query") WxqManagePlanQuery query);

    /**
     * 查询所有
     * @param query
     * @return
     */
    ArrayList<WxqManagePlan> findByList(@Param("query") WxqManagePlanQuery query);
}